package com.aaa.stock.dao;

import com.aaa.entity.StockPurchase;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PruchaseDao extends BaseMapper<StockPurchase> {


    @Select(value = "select * from stock_purchase")
    List<StockPurchase> purchaseAll();


    int modification(@Param("status") String status, @Param(value = "purchaseId") String purchaseId);

    int modificationE(@Param("status") String status,@Param(value = "purchaseId") String purchaseId, @Param(value="examine") String examine);
}
